﻿<?php
	include ('../pub.php');
	include (_ROOT.'/db.php');
	include (_ROOT.'/base/funBase.php');
	
	$v_usr = $_REQUEST['usr'];
	$v_psw = $_REQUEST['psw'];
	
	//echo $v_usr;
	//echo $v_psw;
	//echo 'Location:'._ROOT.'/am/1.php';

	if ( $v_usr != '' and $v_psw != '' )
		{
			//Header( "Location: http://localhost:81/am/1.php");
			//redirect("1.php");
			echo '<script>window.location="http://localhost:81/am/1.php"</script>';
			exit;
		}
	else
		{
		
		?>
		
		<form name="form1" action="am_login.php" method="post">
			<table width="768" align="center">
				<tr>
					<td align="left">ID : <input name="usr" type="text" class="editbox" /></td>
				</tr>
				<tr>
					<td align="left">PSW: <input name="psw" type="password" class="editbox" /></td>
				</tr>
				<tr>
					<td align="left"><input name="submit" type="submit" value="Submit" class="botton"/></td>
				</tr>
			</table>
		</form>
		
		<?php
		}
?>
